package com.efast.cafe.portal.service.statemach;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.bean.statemach.PortalStateMachConf;
import com.efast.cafe.portal.bean.statemach.PortalStateMachConfQueryBean;
import com.efast.cafe.portal.bean.statemach.StateMachEntityInfo;
import com.efast.cafe.portal.remote.statemach.PortalStateMachConfService;

public interface IPortalStateMachConfService extends PortalStateMachConfService{
	/**
	 * 新增状态
	 * 
	 * @param state
	 */
	public void insertConf(PortalStateMachConf conf);

	/**
	 * 修改状态
	 * 
	 * @param state
	 */
	public void updateConf(PortalStateMachConf conf);

	/**
	 * 删除状态
	 * 
	 * @param stateId
	 */
	public void deleteConf(PortalStateMachConf conf);
	
	/**
	 * 获取状态机配置列表带分页
	 * @param queryBean
	 * @return
	 */
	public PortalStateMachConfQueryBean queryPageStateMachConf(PortalStateMachConfQueryBean queryBean);
	
	/**
	 * 获取企业配置列表
	 * @param companyName
	 * @return
	 */
	public List<PortalStateMachConf> getConfListByCompanyCode(String companyCode);
	
	/**
	 * 根据Mxgraph图生成Conf数据
	 * @param conf
	 */
	void insertConfByMxgraph(PortalStateMachConf conf);
	
	/**
	 * 根据Mxgraph图修改Conf数据
	 * @param conf
	 */
	void updateConfByMxgraph(PortalStateMachConf conf); 
	
	PortalStateMachConf getConfById(Long id);
	
	PortalStateMachConf getConfBytaskId(Long taskId);
}
